﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<s:iterator value="models" id="order">
<div id="order_${id}" class="trade-detail panel panel-default">
	<div class="panel-heading">
		<span class="fb f14 pr20">${showDate}</span>订单号:${orderNumber}
		<div class="fr">${staticState.name}<a class="btn btn-default btn-xs ml10" onclick="callAjax('orderDetail','',true,'100','PROPUP','','&id=${id}',orderDetailCallBack,event)">查看详情</a>
		</div>
	</div>
	<div class="panel-body p0">
		<div class="col-xs-12 col-md-8 p0">
			<s:iterator value="carts">
				<div class="trade-prod">
					<div class="col-xs-12 col-md-3 p0">
						<a href="detail?id=${product.id}" target="_blank"><img src="${ALIYUNOSSURL}${product.indexImg}"></a>
					</div>
					<div class="col-xs-12 col-md-5 select-radio p0  pt10">
							<div>${product.name}</div>
							<s:iterator value="attrs">
								<a href="javascript:void(0);" style="display:inline-table;">${name}</a>
							</s:iterator>
					</div>
					<div class="col-xs-6 col-md-2 p0 pt10">单价： ${product.truePrice}￥</div>
					<div class="col-xs-6 col-md-2 p0 pt10">数量： ${num}</div>
					<div class="cb"></div>
				</div>
				<div class="cb"></div>
			</s:iterator>
		</div>
		<div class="col-xs-12 col-md-4 trade-total">
			<div class="col-xs-7 p0 pt10 m0 lh20">
				<s:if test="!message.equals('')">
					<div>备注:${message}</div>
				</s:if>
				+ 小计：${total}元<br>
				+ 运费：${freight}元<br>
				- 积分支付：${bounds/JIFEN}元<br>
				= 总计： <span class="F40 f14 fb">${freAndTotal}</span>元<br>
				
			</div>
			<div class="col-xs-5 p0 pt10 m0">
				<s:iterator value="operates">
					<a type="button" <s:property value="link.replace('ID',#order.id+'')" escape="false"/> target="_blank" class="btn btn-block ${value} btn-xs" role="button">${name}</a>
				</s:iterator>
			</div>
			<div class="cb"></div>
		</div>
	</div>
</div>
</s:iterator>
